package reedSolomon;

import java.util.HashMap;
import java.util.Map;

public class RSRatioOfFragments {
	
	public int sourceFragments;
	
	public int encodedFragments;

	public int getSourceFragments() {
		return sourceFragments;
	}

	public void setSourceFragments(int sourceFragments) {
		this.sourceFragments = sourceFragments;
	}

	public int getEncodedFragments() {
		return encodedFragments;
	}

	public void setEncodedFragments(int encodedFragments) {
		this.encodedFragments = encodedFragments;
	}

	
static	HashMap<Integer, Integer>ratioMapping = new HashMap<Integer,Integer>();
	
	
	
	public HashMap<Integer, Integer> getRatioMapping() {
		return ratioMapping;
	}

	public void setRatioMapping(HashMap<Integer, Integer> ratioMapping) {
		this.ratioMapping = ratioMapping;
	}

	public RSRatioOfFragments(){
		ratioMapping.put(1, 7);
		ratioMapping.put(2, 8);
		ratioMapping.put(3, 9);
		ratioMapping.put(4, 10);
		ratioMapping.put(5, 11);
		ratioMapping.put(6, 11);
		ratioMapping.put(7, 12);
		ratioMapping.put(8, 13);
		ratioMapping.put(9, 14);
		ratioMapping.put(10,14);
		ratioMapping.put(11, 15);
		ratioMapping.put(12, 15);
		ratioMapping.put(13, 16);
		ratioMapping.put(14, 17);
		ratioMapping.put(15, 17);
		ratioMapping.put(16, 18);
		ratioMapping.put(17, 18);
		ratioMapping.put(18, 19);
		ratioMapping.put(19, 19);
		ratioMapping.put(20, 20);
		ratioMapping.put(21, 20);
		ratioMapping.put(22, 21);
		ratioMapping.put(23, 21);
		ratioMapping.put(24, 22);
		ratioMapping.put(25, 22);
		ratioMapping.put(26, 23);
		ratioMapping.put(27, 23);
		ratioMapping.put(28, 24);
		ratioMapping.put(29, 24);
		ratioMapping.put(30, 25);
		ratioMapping.put(31, 25);
		ratioMapping.put(32, 26);
		ratioMapping.put(33, 26);
		ratioMapping.put(34, 27);
		ratioMapping.put(35, 27);
		ratioMapping.put(36, 27);
		ratioMapping.put(37, 28);
		ratioMapping.put(38, 28);
		ratioMapping.put(39, 29);
		ratioMapping.put(40, 29);
		ratioMapping.put(41, 30);
		ratioMapping.put(42, 30);
		ratioMapping.put(43, 31);
		ratioMapping.put(44, 31);
		ratioMapping.put(45, 31);
		ratioMapping.put(46, 32);
		ratioMapping.put(47, 32);
		ratioMapping.put(48, 33);
		ratioMapping.put(49, 33);
		ratioMapping.put(50, 34);
		ratioMapping.put(51, 34);
		ratioMapping.put(52, 34);
		ratioMapping.put(53, 35);
		ratioMapping.put(54, 35);
		ratioMapping.put(55, 36);
		ratioMapping.put(56, 36);
		ratioMapping.put(57, 36);
		ratioMapping.put(58, 37);
		ratioMapping.put(59, 37);
		ratioMapping.put(60, 38);
		ratioMapping.put(61, 38);
		ratioMapping.put(62, 38);
		ratioMapping.put(63, 39);
		ratioMapping.put(64, 39);
	}
	

}
